/**
 * @Description 画布整体缩放
 * @date 2021-09-04
 * @returns {any}
 */
export const wheel = (gl, app, robot) => {
  window.addEventListener("mousewheel", (event) => {
    const step = event.wheelDelta > 0 ? 0.1 : -0.1
    if (app.scale.x + step >= 0.1) {
      app.scale.x += step
      app.scale.y += step
    }
  })
}